package com.linked.order.feign;

import com.linked.order.feign.fallback.StoreFeignFallBack;
import com.linked.universal.common.LinkedResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author :dbq
 * @date : 2022/11/24 9:53
 */
@FeignClient(value = "Linked-Store", fallback = StoreFeignFallBack.class)
public interface IStoreFeign {

    @PostMapping(value = "/store/thinghandle/reduceInventory")
    LinkedResult reduceInventory(@RequestParam("orderId") String orderId,@RequestParam("goodsVersionId") String goodsVersionId, @RequestParam("goodsCount") int goodsCount);
}
